﻿using ServiceStack.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LeEdu.DTO
{
    /// <summary>
    /// 用户信息
    /// </summary>
    [Alias("UserInfo")]
    public class UserInfoDTO
    {
        [PrimaryKey]
        public Guid Id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Required]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Required]
        public string Password { get; set; }

        /// <summary>
        /// 角色ID
        /// 1-管理员
        /// 2-用户
        /// </summary>
        [Required]
        public int RoleId { get; set; }
    }
}
